package com.mrlv.ht.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

public class Enctype {

	public static void main(String[] args) {
		Md5Hash md5 = new Md5Hash("123456","chenchen",3);
		System.out.println(md5.toString());
	}

	public static String md5(String password, String username) {
		Md5Hash md5 = new Md5Hash(password, username, 3);
		return md5.toString();
	}
}
